package com.freight.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "user_company_driver")
@TableName("user_company_driver")
@ApiModel(value = "货主司机关联表")
public class CompanyDriver extends FreightBaseEntity {

    @ApiModelProperty(value = "货主id")
    private Long companyUserId;

    @ApiModelProperty(value = "司机id")
    private Long driverUserId;


}
